﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="AdminCenter.aspx.cs" Inherits="NuaTarDoneng.AdminCenter" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style23
        {
            font-size: small;
            width:960px;
            }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p class="style23">
        你只有拒绝一千件事情，你才能保证不会因为无关紧要的事情浪费太多时间！这样你也许才能做好一件事情！！</p>
    <p class="style23">
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
            AutoGenerateColumns="False" CellPadding="4" DataKeyNames="LogId" 
            DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" 
            Width="100%">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
                <asp:BoundField DataField="LogId" HeaderText="LogId" ReadOnly="True" 
                    SortExpression="LogId" />
                <asp:BoundField DataField="deviceid" HeaderText="deviceid" 
                    SortExpression="deviceid" />
                <asp:BoundField DataField="softid" HeaderText="softid" 
                    SortExpression="softid" />
                <asp:BoundField DataField="time" HeaderText="time" SortExpression="time" />
                <asp:BoundField DataField="info" HeaderText="info" SortExpression="info" />
            </Columns>
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#E9E7E2" />
            <SortedAscendingHeaderStyle BackColor="#506C8C" />
            <SortedDescendingCellStyle BackColor="#FFFDF8" />
            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
        </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        DeleteCommand="DELETE FROM [SoftLog] WHERE [LogId] = @LogId" 
        InsertCommand="INSERT INTO [SoftLog] ([LogId], [deviceid], [softid], [time], [info]) VALUES (@LogId, @deviceid, @softid, @time, @info)" 
        SelectCommand="SELECT * FROM [SoftLog] ORDER BY [time] DESC" 
        
            UpdateCommand="UPDATE [SoftLog] SET [deviceid] = @deviceid, [softid] = @softid, [time] = @time, [info] = @info WHERE [LogId] = @LogId">
        <DeleteParameters>
            <asp:Parameter Name="LogId" Type="String" />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="LogId" Type="String" />
            <asp:Parameter Name="deviceid" Type="String" />
            <asp:Parameter Name="softid" Type="String" />
            <asp:Parameter Name="time" Type="Int64" />
            <asp:Parameter Name="info" Type="String" />
        </InsertParameters>
        <UpdateParameters>
            <asp:Parameter Name="deviceid" Type="String" />
            <asp:Parameter Name="softid" Type="String" />
            <asp:Parameter Name="time" Type="Int64" />
            <asp:Parameter Name="info" Type="String" />
            <asp:Parameter Name="LogId" Type="String" />
        </UpdateParameters>
    </asp:SqlDataSource>
    </p>
</asp:Content>
